/**
 * 子表控件 依赖文件： jquery/jquery-1.11.2.min.js meeting/meeting.core.js
 * static/meeting/controls/subGrid/jquery.subgrid.js
 */
(function(mt) {
	mt.subgrid = function(el, cols, data, option) {
		var defaultOption = {
			idField : 'id',
			data : data,
			checkBox : false,
			columns : cols,
			rowCommon : {
				del : true,
				add : true
			}
		}

		$.extend(true, defaultOption, option);

		var subgrid = $(el).subgrid(defaultOption).data('subgrid');

		return subgrid;
	}
}(meeting));